const App = getApp();

Page({
  /**
   * 页面的初始数据
   */
  data: {
    medHis:[
      {name:'无',value:0,checked:true},
      {name:'高血糖',value:1,checked:false},
      {name:'糖尿病',value:2,checked:false},
    ],
    nowtext:'单选题',
    cannext:true,
    usenmus:5,
    nowindex:0,
    maxnum:100,
    notice:'暂无内容'
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    this.getinfo();
  },
  getinfo(){
    let _this = this;
    App._get('question/questionInfo', {}, function(result) {
      console.log(result);
      let qualifications=result.data.qualifications;
        _this.setData({
          notice:qualifications.notice,
        })
    });
  },
  showinfo(){

  },
  navto(){
    wx.navigateTo({
      url: '../answer/answer'
    });
  }
})